package com.ruoyi.community.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社区对象 cm_community
 *
 * @author HuangRong407
 * @date 2023-05-08
 */
public class Community extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long communityId;

    /** 社区名称 */
    @Excel(name = "社区名称")
    private String communityName;

    /** 社区图片 */
    @Excel(name = "社区图片")
    private String photo;

    /** 社区地址 */
    @Excel(name = "社区地址")
    private String address;

    public void setCommunityId(Long communityId)
    {
        this.communityId = communityId;
    }

    public Long getCommunityId()
    {
        return communityId;
    }
    public void setCommunityName(String communityName)
    {
        this.communityName = communityName;
    }

    public String getCommunityName()
    {
        return communityName;
    }
    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("communityId", getCommunityId())
                .append("communityName", getCommunityName())
                .append("photo", getPhoto())
                .append("address", getAddress())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
